function venModNm=genVensimModels(inputModel,stringToChange,replacements)

fid  = fopen([inputModel '.mdl'],'r');
f=fread(fid,'*char')';
fclose(fid);
venModNm={};
for i=1:numel(replacements)
    rplNm=regexprep(replacements{i},' ','-');
    fout = regexprep(f,stringToChange,replacements{i});
    %f = regexprep(f,' ',' .');
    mdlNm=[inputModel '-' rplNm '.mdl'];
    fid  = fopen(mdlNm,'w');
    fprintf(fid,'%s',fout);
    fclose(fid);
    venModNm={venModNm{:},mdlNm};
end

end